#include <vector>
#include <iostream>
#include <algorithm>
#include <numeric>

/**
 * @brief  使用fill_n将一个序列中的int值都设置为0
 * 
 */
int main()
{
    std::vector<int> v1 = {0,1,2,3,4,5,6,7,8,9};
    std::fill_n(v1.begin(), v1.size(), 0);

    std::vector<int> v2;
    std::fill_n(std::back_inserter(v2), 10, 0);
}
